<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
html, body {
	margin: 0;
	padding: 0;
}
</style>
<!-- <script src="js/vue.js"></script> -->
<script src="js/vue.min.js"></script>
<script src="js/element-ui/index.js"></script>
<link href="js/element-ui/index.css" rel="stylesheet" />
</head>
<body>
	<div id="up">
		<el-upload action="http://localhost:81/f" list-type="picture-card" :on-preview="handlePictureCardPreview" :on-remove="handleRemove" multiple>
			<i class="el-icon-plus"></i>
		</el-upload>
		<el-dialog :visible.sync="dialogVisible">
			<el-image :src="dialogImageUrl" ></el-image>
		</el-dialog>
	</div>
<script>
	var up = new Vue({
		el: '#up',
		data:{
	        dialogImageUrl: '',
	        dialogVisible: false
	    },
	    methods: {
	      handleRemove(file, fileList) {
	        console.log(file, fileList);
	      },
	      handlePictureCardPreview(file) {
	        this.dialogImageUrl = file.url;
	        this.dialogVisible = true;
	      }
	    }
  	});
</script>
</body>
</html>